package com.ttg.web.manage;

import com.ttg.common.enums.BankFileTypeEnum;
import com.ttg.model.pojo.*;

public class GetBankFileTypeObjectManage {

//    public static BankFileConstant GetBankFileTypeObject(BankFileTypeEnum bankFileTypeEnum){
//
//        switch (bankFileTypeEnum){
//            case BANK_CUSTOMER_INFO:
//                return new BankCustomerInfo();
//            case BANK_PRIVATE_PRIMITIVE:
//                return new BankPrivatePrimitive();
//            case BANK_PRIVATE_LUM:
//                return null;
//            case BANK_CARD_DATA_INFO:
//                return new BankCardDataInfo();
//            case BANK_PRODUCT_DATA_INFO:
//                return new BankProductDataInfo();
//            case BANK_CUSTOMER_SIGN_INFO:
//                return new BankCustomerSignInfo();
//            case BANK_CARD_BINDING_INFO:
//                return new BankCardBindingInfo();
//            case BANK_PUBLIC_PRIMITIVE:
//                return new BankPublicPrimitive();
//            case BANK_PUBLIC_TRADE_PRIMITIVE:
//                return new BankPublicTradePrimitive();
//            default:
//                return null;
//        }
//    }

    public static Class GetBankFileTypeClass(BankFileTypeEnum bankFileTypeEnum){

        switch (bankFileTypeEnum){
            case BANK_CUSTOMER_INFO:
                return  BankCustomerInfo.class;
            case BANK_PRIVATE_PRIMITIVE:
                return  BankPrivatePrimitive.class;
            case BANK_PRIVATE_LUM:
                return null;
            case BANK_CARD_DATA_INFO:
                return  BankCardDataInfo.class;
            case BANK_PRODUCT_DATA_INFO:
                return  BankProductDataInfo.class;
            case BANK_CUSTOMER_SIGN_INFO:
                return  BankCustomerSignInfo.class;
            case BANK_CARD_BINDING_INFO:
                return  BankCardBindingInfo.class;
            case BANK_PUBLIC_PRIMITIVE:
                return  BankPublicPrimitive.class;
            case BANK_PUBLIC_TRADE_PRIMITIVE:
                return  BankPublicTradePrimitive.class;
            default:
                return null;
        }
    }


    public static Class GetBankFileExcelTypeClass(BankFileTypeEnum bankFileTypeEnum){

        switch (bankFileTypeEnum){
            case BANK_CUSTOMER_INFO:
                return  BankCustomerInfo.class;
            case BANK_PRIVATE_PRIMITIVE:
                return  BankPrivatePrimitive.class;
            case BANK_PRIVATE_LUM:
                return null;
            case BANK_CARD_DATA_INFO:
                return  BankCardDataInfo.class;
            case BANK_PRODUCT_DATA_INFO:
                return  BankProductDataInfo.class;
            case BANK_CUSTOMER_SIGN_INFO:
                return  BankCustomerSignInfo.class;
            case BANK_CARD_BINDING_INFO:
                return  BankCardBindingInfo.class;
            case BANK_PUBLIC_PRIMITIVE:
                return  BankPublicPrimitive.class;
            case BANK_PUBLIC_TRADE_PRIMITIVE:
                return  BankPublicTradePrimitive.class;
            default:
                return null;
        }
    }
}
